xen/arm: vgic-v3: Move the emulation of ICC_SGI1R_EL1 in a separate helper
authorJulien Grall <julien.grall@arm.com>
Wed, 7 Dec 2016 12:33:52 +0000 (12:33 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 7 Dec 2016 22:46:39 +0000 (14:46 -0800)
commit8c6feb177d1e17466aed2fda8784acb1f9d18d11
tree65ab916081b58db654ec8f366f9eba2f44282d62
parent572190dbe5deb5ffce2231904b85231eb36e6c19
xen/arm: vgic-v3: Move the emulation of ICC_SGI1R_EL1 in a separate helper

The emulation of the co-processor register ICC_SGI1R is the same as the
system register ICC_SGI1R_EL1. So move the emulation outside and use the
newly introduced helper vreg_emulate_sysreg64 to abstract the access.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vgic-v3.c